package cn.jzq.mysoul.yourname.base;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
public class SuperEntity<T extends Model> extends Model<T> implements Serializable{

    @TableId
    private Long id;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
